#pragma once

#include <bfunc_eclic.h>
#include <gexpl_eclic.h>

// 由nlbits获取priority域位数
static inline u32_s
eclic_get_priority_bit_amount(eclic_cliccfg_nlbits_e nlbits) {
	return LEVEL_PRIORITY_BIT_AMOUNT - nlbits;
}

// 设置level和priority的位数
static inline void
eclic_set_level_priority_bit_amount(eclic_cliccfg_nlbits_e nlbits) {
	eclic_set_level_bit_amount_by_q(ECLIC_Q, nlbits);
}
